package com.qdu.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.qdu.vo.WxUserInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ellery2018
 * @since 2022-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="")
public class User  implements Serializable  {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户 ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户唯一标识")
    @TableField("openId")
    private String openId;

    @ApiModelProperty(value = "微信开放平台唯一标识")
    @TableField("union_id")
    private String unionId;

    @ApiModelProperty(value = "是否授权")
    @TableField("is_Auth")
    private Integer isAuth;

    @ApiModelProperty(value = "真是姓名")
    private String name;

    @ApiModelProperty(value = "微信头像url")
    @TableField("avatar_url")
    private String avatarUrl;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "男性为1（默认），女性为0,")
    private Boolean gender;

    @ApiModelProperty(value = "身份证号")
    @TableField("idCardNumber")
    private byte[] idCardNumber;

    @ApiModelProperty(value = "工会名称")
    @TableField("unionName")
    private String unionName;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "用户积分")
    private Integer point;

    @ApiModelProperty(value = "健康能量")
    @TableField("healthPower")
    private Integer healthPower;

    @ApiModelProperty(value = "线下打卡次数")
    @TableField("offlineNumber")
    private Integer offlineNumber;

    @ApiModelProperty(value = "线上使用健康能量签到次数")
    @TableField("onlineNumber")
    private Integer onlineNumber;

    @ApiModelProperty(value = "答题兑换健康能量次数")
    @TableField("answerNumber")
    private Integer answerNumber;

    @ApiModelProperty(value = "最近签到日期")
    @TableField("recentSignedIn")
    private Date recentSignedIn;

    @ApiModelProperty(value = "最近步数兑换日期")
    @TableField("recentStepExchange")
    private Date recentStepExchange;


}
